package top.lishuoboy.boot92.datetime.serializable.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.Date;

/**
 * @TableName date_time
 */
@TableName(value = "date_time")
@Data
public class DateTime {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Date date1;
    private Date date2;

    private ZonedDateTime zonedDateTime1;
    private ZonedDateTime zonedDateTime2;

    private Instant instant1;
    private Instant instant2;

    private LocalDateTime localDateTime1;
    private LocalDateTime localDateTime2;
}